function document.onkeydown()
{
	if (event.srcElement.id != "btnDialogCancel" && event.srcElement.tagName != "TEXTAREA" && event.keyCode == 13)
	{
		event.returnValue = false;
		
		Ok();
	}
	else if (event.keyCode == 116)
	{
		event.keyCode =0;
		event.returnValue = false;	
	}
}


function Trim(s)
{
	return s.replace(/^\s+|\s+$/g,'');
}


function Cancel()
{
	window.close();
}